package com.thermal.thermal_inspection.mapper;

import com.thermal.thermal_inspection.entity.Case;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CaseMapper {
    Case selectCaseById(int caseId);
    List<Case> selectAllCases();
    int insertCase(Case caseData);
    int updateCase(Case caseData);
    int deleteCase(int caseId);
    List<Case> searchCases(@Param("patientId") Integer patientId,
                           @Param("doctorId") Integer doctorId);
}

